﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001D3 RID: 467
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeStatistics : IMessage<ChallengeStatistics>, IMessage, IEquatable<ChallengeStatistics>, IDeepCloneable<ChallengeStatistics>, IBufferMessage
	{
		// Token: 0x17000632 RID: 1586
		// (get) Token: 0x0600153A RID: 5434 RVA: 0x0003CA7F File Offset: 0x0003AC7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeStatistics> Parser
		{
			get
			{
				return ChallengeStatistics._parser;
			}
		}

		// Token: 0x17000633 RID: 1587
		// (get) Token: 0x0600153B RID: 5435 RVA: 0x0003CA86 File Offset: 0x0003AC86
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeStatisticsReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000634 RID: 1588
		// (get) Token: 0x0600153C RID: 5436 RVA: 0x0003CA98 File Offset: 0x0003AC98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeStatistics.Descriptor;
			}
		}

		// Token: 0x0600153D RID: 5437 RVA: 0x0003CA9F File Offset: 0x0003AC9F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStatistics()
		{
		}

		// Token: 0x0600153E RID: 5438 RVA: 0x0003CAA8 File Offset: 0x0003ACA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStatistics(ChallengeStatistics other) : this()
		{
			this.recordId_ = other.recordId_;
			this.stageTertinggi_ = ((other.stageTertinggi_ != null) ? other.stageTertinggi_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600153F RID: 5439 RVA: 0x0003CAF4 File Offset: 0x0003ACF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStatistics Clone()
		{
			return new ChallengeStatistics(this);
		}

		// Token: 0x17000635 RID: 1589
		// (get) Token: 0x06001540 RID: 5440 RVA: 0x0003CAFC File Offset: 0x0003ACFC
		// (set) Token: 0x06001541 RID: 5441 RVA: 0x0003CB04 File Offset: 0x0003AD04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RecordId
		{
			get
			{
				return this.recordId_;
			}
			set
			{
				this.recordId_ = value;
			}
		}

		// Token: 0x17000636 RID: 1590
		// (get) Token: 0x06001542 RID: 5442 RVA: 0x0003CB0D File Offset: 0x0003AD0D
		// (set) Token: 0x06001543 RID: 5443 RVA: 0x0003CB15 File Offset: 0x0003AD15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStageTertinggi StageTertinggi
		{
			get
			{
				return this.stageTertinggi_;
			}
			set
			{
				this.stageTertinggi_ = value;
			}
		}

		// Token: 0x06001544 RID: 5444 RVA: 0x0003CB1E File Offset: 0x0003AD1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeStatistics);
		}

		// Token: 0x06001545 RID: 5445 RVA: 0x0003CB2C File Offset: 0x0003AD2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeStatistics other)
		{
			return other != null && (other == this || (this.RecordId == other.RecordId && object.Equals(this.StageTertinggi, other.StageTertinggi) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001546 RID: 5446 RVA: 0x0003CB7C File Offset: 0x0003AD7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RecordId != 0U)
			{
				num ^= this.RecordId.GetHashCode();
			}
			if (this.stageTertinggi_ != null)
			{
				num ^= this.StageTertinggi.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001547 RID: 5447 RVA: 0x0003CBD1 File Offset: 0x0003ADD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001548 RID: 5448 RVA: 0x0003CBD9 File Offset: 0x0003ADD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001549 RID: 5449 RVA: 0x0003CBE4 File Offset: 0x0003ADE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.stageTertinggi_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.StageTertinggi);
			}
			if (this.RecordId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.RecordId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600154A RID: 5450 RVA: 0x0003CC40 File Offset: 0x0003AE40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RecordId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RecordId);
			}
			if (this.stageTertinggi_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.StageTertinggi);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600154B RID: 5451 RVA: 0x0003CC98 File Offset: 0x0003AE98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeStatistics other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RecordId != 0U)
			{
				this.RecordId = other.RecordId;
			}
			if (other.stageTertinggi_ != null)
			{
				if (this.stageTertinggi_ == null)
				{
					this.StageTertinggi = new ChallengeStageTertinggi();
				}
				this.StageTertinggi.MergeFrom(other.StageTertinggi);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600154C RID: 5452 RVA: 0x0003CD00 File Offset: 0x0003AF00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600154D RID: 5453 RVA: 0x0003CD0C File Offset: 0x0003AF0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RecordId = input.ReadUInt32();
					}
				}
				else
				{
					if (this.stageTertinggi_ == null)
					{
						this.StageTertinggi = new ChallengeStageTertinggi();
					}
					input.ReadMessage(this.StageTertinggi);
				}
			}
		}

		// Token: 0x040008C3 RID: 2243
		private static readonly MessageParser<ChallengeStatistics> _parser = new MessageParser<ChallengeStatistics>(() => new ChallengeStatistics());

		// Token: 0x040008C4 RID: 2244
		private UnknownFieldSet _unknownFields;

		// Token: 0x040008C5 RID: 2245
		public const int RecordIdFieldNumber = 9;

		// Token: 0x040008C6 RID: 2246
		private uint recordId_;

		// Token: 0x040008C7 RID: 2247
		public const int StageTertinggiFieldNumber = 1;

		// Token: 0x040008C8 RID: 2248
		private ChallengeStageTertinggi stageTertinggi_;
	}
}
